home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / cupshelpers / __init__.pyc (.txt) next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.3 KB  |  40 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __all__ = [
  5.     'set_debugprint_fn',
  6.     'Device',
  7.     'Printer',
  8.     'activateNewPrinter',
  9.     'copyPPDOptions',
  10.     'getDevices',
  11.     'getPrinters',
  12.     'missingPackagesAndExecutables',
  13.     'parseDeviceID',
  14.     'setPPDPageSize',
  15.     'ppds',
  16.     'openprinting']
  17.  
  18. def _no_debug(x):
  19.     pass
  20.  
  21. _debugprint_fn = _no_debug
  22.  
  23. def _debugprint(x):
  24.     _debugprint_fn(x)
  25.  
  26.  
  27. def set_debugprint_fn(debugprint):
  28.     '''
  29.     Set debugging hook.
  30.  
  31.     @param debugprint: function to print debug output
  32.     @type debugprint: fn (str) -> None
  33.     '''
  34.     global _debugprint_fn
  35.     _debugprint_fn = debugprint
  36.  
  37. from cupshelpers import Device, Printer, activateNewPrinter, copyPPDOptions, getDevices, getPrinters, missingPackagesAndExecutables, parseDeviceID, setPPDPageSize
  38. import ppds
  39. import openprinting
  40.